<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div class="box">
    <strong>年会抽奖</strong>
    <h1>一等奖：<span id="first">1</span></h1>
    <h3>二等奖：<span id="second">2</span></h1>
    <h5>三等奖：<span id="third">3</span></h1>
  </div>
  <script>
    const person = ['张三','李四','王五','赵六','孙七','周八','吴九','郑十'];
    const oneRandom = Math.floor(Math.random() * person.length);
    const one=document.querySelector('#first');
    one.innerHTML = person[oneRandom];
    person.splice(oneRandom,1);
  </script>
</body>
</html>